<?php 
	class Message extends CWidget 
	{
		function run() 
		{
			$message=new Message();
					// if it is ajax validation request
		if(Yii::app()->request->isAjaxRequest)
		{

		// collect user input data
			if(isset($_POST['Message']))
			{
				$message->attributes=$_POST['Message'];
				// validate user input and redirect to the previous page if valid
				if($message->validate())
				{	
					echo "Ахренеть";
				}
			}
		}					
			$this->render('message',array('message'=>$message));
		}
	}

?>